/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package GUI.Admin;

/**
 *
 * @author Dang Nhung
 */
public class Admin_ImageManage extends javax.swing.JPanel {

    /**
     * Creates new form Admin_ImageManage
     */
    public Admin_ImageManage() {
        initComponents();
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jbtngavatar = new javax.swing.ButtonGroup();
        jPanel1 = new javax.swing.JPanel();
        jlbmoviename = new javax.swing.JLabel();
        jbtnok = new javax.swing.JButton();
        jtxtsearchnameorcodeid = new javax.swing.JTextField();
        jPanel3 = new javax.swing.JPanel();
        jlblistofimages = new javax.swing.JLabel();
        jScrollPane1 = new javax.swing.JScrollPane();
        jtblistofroom = new javax.swing.JTable();
        jPanel2 = new javax.swing.JPanel();
        jlbcodeid = new javax.swing.JLabel();
        jtxtcodeid = new javax.swing.JTextField();
        jlbpathofimage = new javax.swing.JLabel();
        jbtnavatar = new javax.swing.JLabel();
        jtxtstateofimage = new javax.swing.JLabel();
        jtxtpathofimage = new javax.swing.JTextField();
        jbtnfilechooser = new javax.swing.JButton();
        jrdbtnyes = new javax.swing.JRadioButton();
        jrdbtnno = new javax.swing.JRadioButton();
        jcbstateofimage = new javax.swing.JComboBox();
        jbtnreset = new javax.swing.JButton();
        jbtnaddimage = new javax.swing.JButton();
        jbtnupdateimage = new javax.swing.JButton();
        jbtndeleteimage = new javax.swing.JButton();
        jbtncancel = new javax.swing.JButton();
        jlbimageid = new javax.swing.JLabel();
        jtxtimageid = new javax.swing.JTextField();

        jPanel1.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        jPanel1.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N

        jlbmoviename.setFont(new java.awt.Font("Tahoma", 3, 12)); // NOI18N
        jlbmoviename.setText("Movie's Name");

        jbtnok.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jbtnok.setText("OK");

        jtxtsearchnameorcodeid.setFont(new java.awt.Font("Tahoma", 2, 11)); // NOI18N
        jtxtsearchnameorcodeid.setText("Type the name of movie...");

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addGap(18, 18, 18)
                .addComponent(jlbmoviename, javax.swing.GroupLayout.PREFERRED_SIZE, 99, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jtxtsearchnameorcodeid)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jbtnok, javax.swing.GroupLayout.PREFERRED_SIZE, 108, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18))
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addGap(21, 21, 21)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jtxtsearchnameorcodeid, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jbtnok)
                    .addComponent(jlbmoviename))
                .addGap(0, 26, Short.MAX_VALUE))
        );

        jPanel3.setBorder(javax.swing.BorderFactory.createEtchedBorder());

        jlblistofimages.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N
        jlblistofimages.setText("List Of Images");

        jtblistofroom.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null, null},
                {null, null, null, null, null},
                {null, null, null, null, null},
                {null, null, null, null, null},
                {null, null, null, null, null},
                {null, null, null, null, null},
                {null, null, null, null, null},
                {null, null, null, null, null},
                {null, null, null, null, null},
                {null, null, null, null, null},
                {null, null, null, null, null}
            },
            new String [] {
                "STT", "Code ID", "Path of Image", "Avatar", "State of Image"
            }
        ) {
            Class[] types = new Class [] {
                java.lang.Integer.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.Double.class
            };

            public Class getColumnClass(int columnIndex) {
                return types [columnIndex];
            }
        });
        jScrollPane1.setViewportView(jtblistofroom);

        javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
        jPanel3.setLayout(jPanel3Layout);
        jPanel3Layout.setHorizontalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jlblistofimages, javax.swing.GroupLayout.PREFERRED_SIZE, 141, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 690, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(0, 10, Short.MAX_VALUE))
        );
        jPanel3Layout.setVerticalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(jlblistofimages, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 173, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(275, 275, 275))
        );

        jlbcodeid.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jlbcodeid.setText("Code ID");

        jlbpathofimage.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jlbpathofimage.setText("Path of Image");

        jbtnavatar.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jbtnavatar.setText("Avatar");

        jtxtstateofimage.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jtxtstateofimage.setText("State of Image");

        jbtnfilechooser.setText("File Chooser");

        jbtngavatar.add(jrdbtnyes);
        jrdbtnyes.setFont(new java.awt.Font("Tahoma", 3, 12)); // NOI18N
        jrdbtnyes.setText("Yes");

        jbtngavatar.add(jrdbtnno);
        jrdbtnno.setFont(new java.awt.Font("Tahoma", 3, 12)); // NOI18N
        jrdbtnno.setText("No");

        jcbstateofimage.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));

        jbtnreset.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jbtnreset.setText("Reset");

        jbtnaddimage.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jbtnaddimage.setText("Add Image");

        jbtnupdateimage.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jbtnupdateimage.setText("Update Image");

        jbtndeleteimage.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jbtndeleteimage.setText("Delete Image");

        jbtncancel.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jbtncancel.setText("Cancel");

        jlbimageid.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jlbimageid.setText("Image ID");

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addGap(88, 88, 88)
                .addComponent(jbtnreset, javax.swing.GroupLayout.PREFERRED_SIZE, 88, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jbtnaddimage, javax.swing.GroupLayout.PREFERRED_SIZE, 99, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jbtnupdateimage)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jbtndeleteimage)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jbtncancel, javax.swing.GroupLayout.PREFERRED_SIZE, 93, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(96, Short.MAX_VALUE))
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jlbpathofimage, javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jtxtstateofimage, javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jlbcodeid, javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jlbimageid, javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jbtnavatar, javax.swing.GroupLayout.Alignment.TRAILING))
                .addGap(43, 43, 43)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addGap(39, 39, 39)
                        .addComponent(jrdbtnyes, javax.swing.GroupLayout.PREFERRED_SIZE, 56, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(95, 95, 95)
                        .addComponent(jrdbtnno, javax.swing.GroupLayout.PREFERRED_SIZE, 55, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                        .addComponent(jtxtcodeid)
                        .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()
                            .addComponent(jtxtpathofimage, javax.swing.GroupLayout.PREFERRED_SIZE, 234, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(jbtnfilechooser))
                        .addComponent(jcbstateofimage, javax.swing.GroupLayout.PREFERRED_SIZE, 331, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(jtxtimageid)))
                .addGap(123, 123, 123))
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jlbimageid)
                    .addComponent(jtxtimageid, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 15, Short.MAX_VALUE)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jlbcodeid)
                    .addComponent(jtxtcodeid, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jlbpathofimage)
                    .addComponent(jtxtpathofimage, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jbtnfilechooser))
                .addGap(18, 18, 18)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jcbstateofimage, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jtxtstateofimage))
                .addGap(18, 18, 18)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jrdbtnno)
                    .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jrdbtnyes)
                        .addComponent(jbtnavatar)))
                .addGap(29, 29, 29)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)
                    .addComponent(jbtncancel)
                    .addComponent(jbtndeleteimage)
                    .addComponent(jbtnupdateimage)
                    .addComponent(jbtnreset)
                    .addComponent(jbtnaddimage))
                .addContainerGap())
        );

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                    .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jPanel3, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jPanel1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, 235, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
        );
    }// </editor-fold>//GEN-END:initComponents
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JPanel jPanel3;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JButton jbtnaddimage;
    private javax.swing.JLabel jbtnavatar;
    private javax.swing.JButton jbtncancel;
    private javax.swing.JButton jbtndeleteimage;
    private javax.swing.JButton jbtnfilechooser;
    private javax.swing.ButtonGroup jbtngavatar;
    private javax.swing.JButton jbtnok;
    private javax.swing.JButton jbtnreset;
    private javax.swing.JButton jbtnupdateimage;
    private javax.swing.JComboBox jcbstateofimage;
    private javax.swing.JLabel jlbcodeid;
    private javax.swing.JLabel jlbimageid;
    private javax.swing.JLabel jlblistofimages;
    private javax.swing.JLabel jlbmoviename;
    private javax.swing.JLabel jlbpathofimage;
    private javax.swing.JRadioButton jrdbtnno;
    private javax.swing.JRadioButton jrdbtnyes;
    private javax.swing.JTable jtblistofroom;
    private javax.swing.JTextField jtxtcodeid;
    private javax.swing.JTextField jtxtimageid;
    private javax.swing.JTextField jtxtpathofimage;
    private javax.swing.JTextField jtxtsearchnameorcodeid;
    private javax.swing.JLabel jtxtstateofimage;
    // End of variables declaration//GEN-END:variables
}
